package com.example.fang.demodruid.concurrency2;

public class Mytask1 {

    private  Object object=new Object();

    public void method(){
        synchronized (object){
            System.out.println("hello world");
        }
    }
}
